package huxibianjie.com.lbscandroid.model;

import android.support.annotation.IntDef;

public class ItemModel {
    @Type
    public int type;
    public Object data;

    public ItemModel(@Type int type, Object data) {
        this.type = type;
        this.data = data;
    }

    @IntDef({
            Type.ITEM_HOME_TOP,
            Type.ITEM_HOME_TYPE,
            Type.ITEM_HOME_TITLE,
            Type.ITEM_HOME_INFO,
            Type.ITEM_HOME_CHART,


    })
    public @interface Type {
        /**
         * 首页 头部
         */
        int ITEM_HOME_TOP = 1001;
        /**
         * 首页 标题
         */
        int ITEM_HOME_TITLE = 1002;
        /**
         * 首页 类型
         */
        int ITEM_HOME_TYPE = 1003;

        /**
         * 首页 信息
         */
        int ITEM_HOME_INFO = 1004;
        /**
         * 首页 图标
         */
        int ITEM_HOME_CHART = 1005;
    }
}